import {defineStore} from "pinia";

const blogStore = defineStore("blog", {
        state: () => {
            return {
                token: "",
                user: "",
                key: ""
            }
        },
        persist: {
            enabled: true,
            strategies: [
                {
                    key: 'blog',
                    storage: localStorage,
                },
            ],
        }
    }
)


export default blogStore